package com.sk.bilibili.config;

import android.content.Context;

import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.load.engine.cache.LruResourceCache;
import com.bumptech.glide.module.AppGlideModule;

@GlideModule//继承对应类 标注为配置类
public class GlideConfig extends AppGlideModule {

    @Override//对Glide进行配置
    public void applyOptions(Context context, GlideBuilder builder) {
        builder.setMemoryCache(new LruResourceCache(1024*1024*512));
    }

}